convert map_domain_page_global() to using mfn_t
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 10 Jul 2015 10:53:24 +0000 (12:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Jul 2015 10:53:24 +0000 (12:53 +0200)
commit377f4e532e6cd335c9f1e8ea4c1f87312a67ba34
treee84be9931dce0e40d51ba1e657ee52b5c66a69b7
parent2062f31bb32fedcbbb80175927c3f929e60aa095
convert map_domain_page_global() to using mfn_t

The sh_map/unmap wrappers can be dropped, and take the opportunity to turn
some #define's into static inlines, for added type saftey.

As part of adding the type safety, GCC highlights an problematic include cycle
with arm/mm.h including domain_page.h which includes xen/mm.h and falls over
__page_to_mfn being used before being declared.  Simply dropping the inclusion
of domain_page.h fixes the compilation issue.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c
xen/arch/x86/domain_page.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h
xen/include/asm-arm/mm.h
xen/include/xen/domain_page.h